package com.cti.commons.delayqueue.repository.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import com.cti.commons.delayqueue.repository.DelayConsumerMessageLog;
import com.cti.commons.delayqueue.repository.DelayConsumerMessageRepository;

/**
 * @author et.wang
 * @description:
 * @date 2022/11/23 09:39
 */
@Service
public class DelayConsumerMessageRepositoryImpl implements DelayConsumerMessageRepository {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void save(DelayConsumerMessageLog log) {
        mongoTemplate.save(log);
    }

}
